package com.j4dream.domain;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

public abstract class BaseMongoDomain implements Serializable {

	private static final long serialVersionUID = 8533467531786202710L;

	public abstract void createInDB() throws Exception;

	public abstract void updateToDB() throws Exception;

	public abstract void deleteInDB() throws Exception;

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}
}
